package test
{
	import cn._2dland.comment.CommentObject;
	import cn._2dland.comment.CommentView;
	import cn._2dland.utils.CommentUtils;
	
	import flash.display.MovieClip;

	[SWF(width=700,height=470)]

	public class Tester extends MovieClip
	{
		public function Tester() {
			var view:CommentView = new CommentView(540,384);
			addChild(view);
			view.play();

			var cmntObj:CommentObject = new CommentObject();
			cmntObj.mode = CommentUtils.MODE_FIXED_TOP;
			cmntObj.message = "测试123456abc";
			cmntObj.color = 0xff0000;
			cmntObj.inDuration = 1000;
			cmntObj.outDuration = 1000;
			cmntObj.fontEffect = CommentUtils.FILTER_BORDER;
			cmntObj.inEffect.effectID = CommentUtils.EFFECT_FADE;
			cmntObj.outEffect.effectID = CommentUtils.EFFECT_DISSOLVE;
			cmntObj.border = true;
			view.addComment(cmntObj);

			cmntObj = new CommentObject();
			cmntObj.mode = CommentUtils.MODE_FIXED_TOP;
			cmntObj.message = "测试123456abc";
			cmntObj.color = 0;
			cmntObj.inDuration = 1000;
			cmntObj.outDuration = 1000;
			cmntObj.fontEffect = CommentUtils.FILTER_BORDER;
			cmntObj.inEffect.effectID = CommentUtils.EFFECT_FADE;
			cmntObj.outEffect.effectID = CommentUtils.EFFECT_IRIS;
			cmntObj.border = true;
			view.addComment(cmntObj);
		}
	}
}